package com.xingxuecn.limit.common.model;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author 陈前钱 at 2018/9/10 0010 下午 3:24
 */
public class User {
    private Integer id;

    private String url;
    private String name;

    public User() {
    }

    public User(Integer id, Integer parent_id, String url, String name) {
        this.id = id;

        this.url = url;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("id", id)

                .append("url", url)
                .append("name", name)
                .toString();
    }
}
